﻿namespace HamcoWcs.Tools.Tibco.Entities
{
    /// <summary>
    /// Mes消息发送方
    /// </summary>
    public enum EnumMesMsgSender
    {
        WCS = 1,
        WMS,
        MES
    }

    /// <summary>Mes消息状态</summary>
    public enum EnumMesMsgStatus
    {
        /// <summary>Wcs等待发送</summary>
        WcsWaitSend = 1,
        /// <summary>Wcs等待Reply</summary>
        WcsWaitRecv,
        /// <summary>Wcs重发</summary>
        WcsReSend,
        /// <summary>Wcs接收Reply成功</summary>
        WcsReceived,
        /// <summary>Wcs接收Reply成功</summary>
        WcsRecvExcute,


        /// <summary>Mes发起请求</summary>
        MesRequest = 11,
        /// <summary>Mes等待Wcs处理</summary>
        MesWait,
        /// <summary>处理Mes请求中</summary>
        //WcsExcuting,
        /// <summary>处理Mes请求已完成</summary>
        WcsExcuted,

        /// <summary>已完成</summary>
        Completed = 21,
        /// <summary>手动关闭</summary>
        Closed,
        /// <summary>发生异常</summary>
        Error,
    }
    //public enum EnumMesMsgStatus
    //{
    //    /// <summary>等待发送</summary>
    //    WaitSend = 1,
    //    /// <summary>等待接收</summary>
    //    WaitRecv,
    //    /// <summary>重发</summary>
    //    ReSend,
    //    /// <summary>接收成功</summary>
    //    RecvSuccess,
    //    /// <summary>发生异常</summary>
    //    Error,
    //    /// <summary>关闭</summary>
    //    Closed
    //}


    /// <summary>消息类型</summary>
    public enum EnumMesRequestType
    {
        /// <summary>上报信息</summary>
        Report = 1,
        /// <summary>请求</summary>
        Request = 2,
    }
}